package com.lucy.nepu.module.topic.lib.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "纵向课题词典更新参数")
public class TopicDictUpdateParams {
    @NotBlank(message = "纵向课题词典ID不可为空")
    @ApiModelProperty(value = "纵向课题词典ID",name = "id")
    String id;

    @NotBlank(message = "分类编码不可为空")
    @ApiModelProperty("分类编码")
    String code;
    /**
     * 纵向课题类型
     */
    @NotBlank(message = "纵向课题类型不可为空")
    @ApiModelProperty(value = "纵向课题类型",notes = "国家科技重大专项等")
    String topicType;

    /**
     * 纵向课题类别
     */
    @NotBlank(message = "纵向课题类别不可为空")
    @ApiModelProperty(value = "纵向课题类别",notes = "A1,A2,B1等")
    String  topicLevel;

    /**
     * 纵向课题对应的工作量
     */
    @Min(0)
    @ApiModelProperty(value = "年工作量",notes = "年工作量")
    Double workload;
}
